package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_SYS_ORGANIZATION"
 *     
*/
public class CcpSysOrganization implements Serializable {

    /** identifier field */
    private String orgGuid;

    /** persistent field */
    private String orgCode;

    /** nullable persistent field */
    private String orgName;

    /** persistent field */
    private String orgTitle;

    /** nullable persistent field */
    private String orgParent;

    /** nullable persistent field */
    private String orgDescription;

    /** nullable persistent field */
    private String sysOrder;

    /** nullable persistent field */
    private String orgFinancezone;

    /** nullable persistent field */
    private String orgShortname;

    /** nullable persistent field */
    private String orgBudgetcode;

    /** nullable persistent field */
    private String orgGb;

    /** nullable persistent field */
    private String orgLevel;

    /** nullable persistent field */
    private String orgNature;

    /** nullable persistent field */
    private String unitOperator;

    /** nullable persistent field */
    private String unitCeo;

    /** nullable persistent field */
    private String unitCfo;

    /** nullable persistent field */
    private String unitPostcode;

    /** nullable persistent field */
    private String unitTel;

    /** nullable persistent field */
    private String unitAddress;

    /** nullable persistent field */
    private BigDecimal orgReserved1;

    /** nullable persistent field */
    private BigDecimal orgReserved2;

    /** nullable persistent field */
    private String orgReserved3;

    /** nullable persistent field */
    private String orgReserved4;

    /** full constructor */
    public CcpSysOrganization(String orgGuid, String orgCode, String orgName, String orgTitle, String orgParent, String orgDescription, String sysOrder, String orgFinancezone, String orgShortname, String orgBudgetcode, String orgGb, String orgLevel, String orgNature, String unitOperator, String unitCeo, String unitCfo, String unitPostcode, String unitTel, String unitAddress, BigDecimal orgReserved1, BigDecimal orgReserved2, String orgReserved3, String orgReserved4) {
        this.orgGuid = orgGuid;
        this.orgCode = orgCode;
        this.orgName = orgName;
        this.orgTitle = orgTitle;
        this.orgParent = orgParent;
        this.orgDescription = orgDescription;
        this.sysOrder = sysOrder;
        this.orgFinancezone = orgFinancezone;
        this.orgShortname = orgShortname;
        this.orgBudgetcode = orgBudgetcode;
        this.orgGb = orgGb;
        this.orgLevel = orgLevel;
        this.orgNature = orgNature;
        this.unitOperator = unitOperator;
        this.unitCeo = unitCeo;
        this.unitCfo = unitCfo;
        this.unitPostcode = unitPostcode;
        this.unitTel = unitTel;
        this.unitAddress = unitAddress;
        this.orgReserved1 = orgReserved1;
        this.orgReserved2 = orgReserved2;
        this.orgReserved3 = orgReserved3;
        this.orgReserved4 = orgReserved4;
    }

    /** default constructor */
    public CcpSysOrganization() {
    }

    /** minimal constructor */
    public CcpSysOrganization(String orgGuid, String orgCode, String orgTitle) {
        this.orgGuid = orgGuid;
        this.orgCode = orgCode;
        this.orgTitle = orgTitle;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="ORG_GUID"
     *         
     */
    public String getOrgGuid() {
        return this.orgGuid;
    }

    public void setOrgGuid(String orgGuid) {
        this.orgGuid = orgGuid;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_CODE"
     *             length="42"
     *             not-null="true"
     *         
     */
    public String getOrgCode() {
        return this.orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_NAME"
     *             length="32"
     *         
     */
    public String getOrgName() {
        return this.orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_TITLE"
     *             length="150"
     *             not-null="true"
     *         
     */
    public String getOrgTitle() {
        return this.orgTitle;
    }

    public void setOrgTitle(String orgTitle) {
        this.orgTitle = orgTitle;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_PARENT"
     *             length="32"
     *         
     */
    public String getOrgParent() {
        return this.orgParent;
    }

    public void setOrgParent(String orgParent) {
        this.orgParent = orgParent;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_DESCRIPTION"
     *             length="250"
     *         
     */
    public String getOrgDescription() {
        return this.orgDescription;
    }

    public void setOrgDescription(String orgDescription) {
        this.orgDescription = orgDescription;
    }

    /** 
     *            @hibernate.property
     *             column="SYS_ORDER"
     *             length="10"
     *         
     */
    public String getSysOrder() {
        return this.sysOrder;
    }

    public void setSysOrder(String sysOrder) {
        this.sysOrder = sysOrder;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_FINANCEZONE"
     *             length="16"
     *         
     */
    public String getOrgFinancezone() {
        return this.orgFinancezone;
    }

    public void setOrgFinancezone(String orgFinancezone) {
        this.orgFinancezone = orgFinancezone;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_SHORTNAME"
     *             length="40"
     *         
     */
    public String getOrgShortname() {
        return this.orgShortname;
    }

    public void setOrgShortname(String orgShortname) {
        this.orgShortname = orgShortname;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_BUDGETCODE"
     *             length="20"
     *         
     */
    public String getOrgBudgetcode() {
        return this.orgBudgetcode;
    }

    public void setOrgBudgetcode(String orgBudgetcode) {
        this.orgBudgetcode = orgBudgetcode;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_GB"
     *             length="20"
     *         
     */
    public String getOrgGb() {
        return this.orgGb;
    }

    public void setOrgGb(String orgGb) {
        this.orgGb = orgGb;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_LEVEL"
     *             length="2"
     *         
     */
    public String getOrgLevel() {
        return this.orgLevel;
    }

    public void setOrgLevel(String orgLevel) {
        this.orgLevel = orgLevel;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_NATURE"
     *             length="2"
     *         
     */
    public String getOrgNature() {
        return this.orgNature;
    }

    public void setOrgNature(String orgNature) {
        this.orgNature = orgNature;
    }

    /** 
     *            @hibernate.property
     *             column="UNIT_OPERATOR"
     *             length="10"
     *         
     */
    public String getUnitOperator() {
        return this.unitOperator;
    }

    public void setUnitOperator(String unitOperator) {
        this.unitOperator = unitOperator;
    }

    /** 
     *            @hibernate.property
     *             column="UNIT_CEO"
     *             length="10"
     *         
     */
    public String getUnitCeo() {
        return this.unitCeo;
    }

    public void setUnitCeo(String unitCeo) {
        this.unitCeo = unitCeo;
    }

    /** 
     *            @hibernate.property
     *             column="UNIT_CFO"
     *             length="10"
     *         
     */
    public String getUnitCfo() {
        return this.unitCfo;
    }

    public void setUnitCfo(String unitCfo) {
        this.unitCfo = unitCfo;
    }

    /** 
     *            @hibernate.property
     *             column="UNIT_POSTCODE"
     *             length="10"
     *         
     */
    public String getUnitPostcode() {
        return this.unitPostcode;
    }

    public void setUnitPostcode(String unitPostcode) {
        this.unitPostcode = unitPostcode;
    }

    /** 
     *            @hibernate.property
     *             column="UNIT_TEL"
     *             length="20"
     *         
     */
    public String getUnitTel() {
        return this.unitTel;
    }

    public void setUnitTel(String unitTel) {
        this.unitTel = unitTel;
    }

    /** 
     *            @hibernate.property
     *             column="UNIT_ADDRESS"
     *             length="150"
     *         
     */
    public String getUnitAddress() {
        return this.unitAddress;
    }

    public void setUnitAddress(String unitAddress) {
        this.unitAddress = unitAddress;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_RESERVED1"
     *             length="38"
     *         
     */
    public BigDecimal getOrgReserved1() {
        return this.orgReserved1;
    }

    public void setOrgReserved1(BigDecimal orgReserved1) {
        this.orgReserved1 = orgReserved1;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_RESERVED2"
     *             length="38"
     *         
     */
    public BigDecimal getOrgReserved2() {
        return this.orgReserved2;
    }

    public void setOrgReserved2(BigDecimal orgReserved2) {
        this.orgReserved2 = orgReserved2;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_RESERVED3"
     *             length="200"
     *         
     */
    public String getOrgReserved3() {
        return this.orgReserved3;
    }

    public void setOrgReserved3(String orgReserved3) {
        this.orgReserved3 = orgReserved3;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_RESERVED4"
     *             length="200"
     *         
     */
    public String getOrgReserved4() {
        return this.orgReserved4;
    }

    public void setOrgReserved4(String orgReserved4) {
        this.orgReserved4 = orgReserved4;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("orgGuid", getOrgGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpSysOrganization) ) return false;
        CcpSysOrganization castOther = (CcpSysOrganization) other;
        return new EqualsBuilder()
            .append(this.getOrgGuid(), castOther.getOrgGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getOrgGuid())
            .toHashCode();
    }

}
